package com.api.syh56.shengyunhui.service;

import com.api.syh56.shengyunhui.entity.Address;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface AddressService extends IService<Address> {
    void addNewAddress(Address address);

    void removeAddress(Address address);

    Address selectById(Long id);

    Page<Address> selectPageByuid(Long uid, Integer pageSize, Integer pageNum);

    void setAlltoDefault(Long uid);

    void setDefault(Long id);

    void updateAddress(Address address);

    Page<Address> selectPageByuidBykeyword(Long uid, Integer pageSize, Integer pageNum, String keyword);
}
